package com.fanqiechaodan.visitor;

import lombok.Data;

/**
 * @author fanqiechaodan
 * @Classname Dog
 * @Description 具体元素;狗
 */
@Data
public class Dog implements Animal{

    private String color;

    private int size;

    public Dog(String color, int size) {
        this.color = color;
        this.size = size;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitor(this);
    }
}
